<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/12
 * Time: 9:37
 */

namespace app\admin\model;


use traits\model\SoftDelete;

class Advantage extends Base
{
    use SoftDelete;

    protected $autoWriteTimestamp = 'datetime';

    public function getStatusAttr($value)
    {
        $status = [1=>'应用',2=>'禁用'];
        return $status[$value];
    }

    public function getLocationAttr($value)
    {
        $status = [0=>"未应用",1=>"首页展示",2=>"解决方案详情页展示"];
        return $status[$value];
    }
}